var mongoose = require("mongoose");
var Schema = mongoose.Schema;

var feedbackSchema = new Schema(
  {
    userid: { type: String, default: "" },
    name: { type: String, default: "" },
    title: { type: String, default: "" },
    content: { type: String, default: "" },
    createTime: { type: Date, default: new Date() },
  },
  { versionKey: false }
);

var feedbackModel = mongoose.model("feedback", feedbackSchema);

module.exports = feedbackModel;
